<?php
namespace Home\Controller;
use Think\Controller;

class ActivityController extends Controller{
	public function detail(){

		$id = I("id",0,"int");
		$activity_info =D('Activity')->getActivityById($id);
	
		$this->assign("activity_info",$activity_info);
		//dump($activity_info);

		$this->display();

	}
	//网赚项目列表  没有效果
    public function lists(){
        $activity_list = D("Activity")->getActivityList();
        $this->assign('activity_list',$activity_list);
        //dump($project_list);

        $this->display();

    }
    public function index(){

         //主页显示活动列表
        $activity_list = D("Activity")->activityLists();
        //dump($activity_list);
        $this->assign('activity_list',$activity_list);

        $this->display();
        
	}
	
}
	